package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户三方登录表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-03-29
 */
@TableName("wz_user_oauth")
public class WzUserOauth extends Model<WzUserOauth> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;
    /**
     * 昵称
     */
    private String nickname;
    /**
     * 性别:1-男性，2-女性
     */
    private Integer sex;
    /**
     * 用户头像
     */
    private String headimgurl;
    /**
     * 用户编号
     */
    @TableField("user_code")
    private String userCode;
    /**
     * 平台：1-微信，2-QQ，3-微博
     */
    private Integer paltform;
    /**
     * openid
     */
    private String openid;
    @TableField("create_time")
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public Integer getPaltform() {
        return paltform;
    }

    public void setPaltform(Integer paltform) {
        this.paltform = paltform;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WzUserOauth{" +
        "id=" + id +
        ", nickname=" + nickname +
        ", sex=" + sex +
        ", headimgurl=" + headimgurl +
        ", userCode=" + userCode +
        ", paltform=" + paltform +
        ", openid=" + openid +
        ", createTime=" + createTime +
        "}";
    }
}
